package com.equdao.car_violation_inquiry.utils;

import com.equdao.car_violation_inquiry.pojo.ResponseUpstreamBean;
import com.equdao.car_violation_inquiry.pojo.ViolationDetails;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: 杨忠强
 * @Date: 2018/6/5 14:32
 * @Description:
 */
@Data
public class ResultViolationUtils {

    public static ResponseUpstreamBean error(Integer code,String msg){
        ResponseUpstreamBean responseUpstreamBean = new ResponseUpstreamBean();
        responseUpstreamBean.setCode(code);
        responseUpstreamBean.setMsg(msg);
        return responseUpstreamBean;
    }


}
